/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.commons.domain.bond;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * cere_shop_bond_transaction 店铺保证金流水实体类
 * 
 * @author
 */
@Data
@Accessors(chain = true)
@TableName("cere_shop_bond_transaction")
@ApiModel(value = "CereShopBondTransaction", description = "店铺保证金流水实体类")
public class CereShopBondTransaction implements Serializable {

  /**
   * 流水ID
   */
  @TableId(type = IdType.AUTO)
  @ApiModelProperty(value = "流水ID")
  private Long transactionId;

  /**
   * 关联店铺ID
   */
  @ApiModelProperty(value = "关联店铺ID")
  private Long shopId;

  /**
   * 关联保证金ID
   */
  @ApiModelProperty(value = "关联保证金ID")
  private Long bondId;

  /**
   * 交易类型 1-充值 2-提现
   */
  @ApiModelProperty(value = "交易类型 1-充值 2-提现")
  private Integer transactionType;

  /**
   * 交易金额
   */
  @ApiModelProperty(value = "交易金额")
  private BigDecimal amount;

  /**
   * 交易前余额
   */
  @ApiModelProperty(value = "交易前余额")
  private BigDecimal balanceBefore;

  /**
   * 交易后余额
   */
  @ApiModelProperty(value = "交易后余额")
  private BigDecimal balanceAfter;

  /**
   * 描述
   */
  @ApiModelProperty(value = "描述")
  private String description;

  /**
   * 备注
   */
  @ApiModelProperty(value = "备注")
  private String remark;

  /**
   * 创建时间
   */
  @ApiModelProperty(value = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  private static final long serialVersionUID = 1L;
}